import random

#list = [random.randint(0,888888)/1000000 for i in range(100)]

list = [i for i in range(1,100)]

def peak_interval(left,right):  #按照检材编号,左闭右开

    lst = list[left-1: right-1]
    print(lst)
    peak = max(lst)
    if peak > 0:
        return [peak, lst.index(max(lst)) + left]
    else:
        return [0, 0]

# print(max(list), list.index(max(list)))
interval = [[20, 50]]



if __name__ == "__main__":
    peak_interval(interval[0][0],interval[0][1])
